package com.weather.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weather.common.annotation.Excel;
import com.weather.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 养殖日期对象 nm_crops
 *
 * @author ruoyi
 * @date 2024-03-16
 */
public class NmCrops extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 种植日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "种植日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date plantingDate;

    /** 种类 */
    @Excel(name = "种类")
    private String cropsType;

    /** 生长周期 */
    @Excel(name = "生长周期")
    private String growthCycle;

    /** 记录事件 */
    @Excel(name = "记录事件")
    private String event;

    /** 城市id */
    @Excel(name = "城市id")
    private String cityid;

    private Long userId;

    private String recommend;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setPlantingDate(Date plantingDate)
    {
        this.plantingDate = plantingDate;
    }

    public Date getPlantingDate()
    {
        return plantingDate;
    }
    public void setCropsType(String cropsType)
    {
        this.cropsType = cropsType;
    }

    public String getCropsType()
    {
        return cropsType;
    }
    public void setGrowthCycle(String growthCycle)
    {
        this.growthCycle = growthCycle;
    }

    public String getGrowthCycle()
    {
        return growthCycle;
    }
    public void setEvent(String event)
    {
        this.event = event;
    }

    public String getEvent()
    {
        return event;
    }
    public void setCityid(String cityid)
    {
        this.cityid = cityid;
    }

    public String getCityid()
    {
        return cityid;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("plantingDate", getPlantingDate())
            .append("cropsType", getCropsType())
            .append("growthCycle", getGrowthCycle())
            .append("event", getEvent())
            .append("cityid", getCityid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
